import request from '@/utils/request'


/**
 * 登录方法
 * @param params
 * @returns {*}
 */
export function login(params) {
    return request({
        url: '/login',
        method: 'post',
        data: params
    })
}
// 退出方法
export function logout() {
    return request({
        url: '/logout',
        method: 'post'
    })
}
/**
 * 注册方法
 * @param params
 * @returns {*}
 */
export function register(params) {
    return request({
        url: '/register',
        method: 'post',
        data: params
    })
}

export function getEmailCode(params) {
    return request({
        url: '/sendEmail',
        method: 'post',
        params: params
    })
}